package mygame;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.math.Vector2f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.shape.Line;
import com.jme3.scene.shape.Dome;
import com.jme3.light.DirectionalLight;
import com.jme3.scene.shape.Cylinder;
import com.jme3.scene.shape.*;
import com.jme3.util.BufferUtils;
import com.jme3.scene.Mesh;
import com.jme3.scene.VertexBuffer.Type;
import com.jme3.math.*;
import com.jme3.scene.Spatial;

public class rectangularPrism
{
    private float zLength, xWidth, yHeight, xPos,yPos,zPos;
    public rectangularPrism()
    {
       
    }
    public rectangularPrism(float xWidth,float yHeight,float zLength,float xPos,float yPos,float zPos)
    {
       
        this.xWidth = xWidth;
        this.yHeight = yHeight;
        this.zLength = zLength;
        this.xPos = xPos;
        this.yPos = yPos;
        this.zPos = zPos;
       
    }
    public Spatial createRectangularPrism()
    {
        Box b = new Box(new Vector3f(xPos,yPos,zPos), xWidth, yHeight, zLength); // create cube shape at the origin
        Spatial geom = new Geometry("Box", b);  // create cube geometry from the shape
       
        return geom;
        // make the cube appear in the scene
       
    }
   
}
